<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>QuantumLibrary: /bb/mbigc/mbig5696/git/quantum_external/src/quantum_context.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">QuantumLibrary
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('d7/ddb/quantum__context_8h_source.html','../../');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">quantum_context.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">** Copyright 2018 Bloomberg Finance L.P.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">**</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">** Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">** you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">** You may obtain a copy of the License at</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">**</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">**     http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">**</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">** Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">** distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">** See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">** limitations under the License.</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#ifndef BLOOMBERG_QUANTUM_CONTEXT_H</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#define BLOOMBERG_QUANTUM_CONTEXT_H</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;quantum/quantum_promise.h&gt;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;quantum/quantum_task.h&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;quantum/quantum_io_task.h&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;quantum/quantum_dispatcher_core.h&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;quantum/quantum_traits.h&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;iterator&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">namespace </span><a class="code" href="../../d6/db9/namespaceBloomberg.html">Bloomberg</a> {</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">namespace </span>quantum {</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">//==============================================================================================</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">//                                 class Context</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">//==============================================================================================</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment"></span><span class="keyword">template</span> &lt;<span class="keyword">class</span> RET&gt;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">class </span>Context : <span class="keyword">public</span> IThreadContext&lt;RET&gt;,</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;                <span class="keyword">public</span> ICoroContext&lt;RET&gt;,</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;                <span class="keyword">public</span> ITaskAccessor,</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;                <span class="keyword">public</span> std::enable_shared_from_this&lt;Context&lt;RET&gt;&gt;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;{</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a99f04ddc152652e7528afd95934466d1">   41</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">struct </span><a class="code" href="../../d1/db1/structBloomberg_1_1quantum_1_1Util.html">Util</a>;</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#aaa7728226b6ce66782e8816b1658dd9a">   42</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="../../d0/d90/classBloomberg_1_1quantum_1_1Task.html">Task</a>;</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#ad90424f003fc2afb836709cbffa47e2c">   43</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="../../d0/da5/classBloomberg_1_1quantum_1_1Dispatcher.html">Dispatcher</a>;</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a655724ff396688037fb9bef66afc3f4e">   44</a></span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">class</span> OTHER_RET&gt; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    </div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a93fbe0e7fa77b4b98f35ee2935dfaa83">   47</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> = std::shared_ptr&lt;Context&lt;RET&gt;&gt;;</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a0aa527cfac3a074ace54db74a9758f45">   48</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="../../da/de3/structBloomberg_1_1quantum_1_1IThreadContext.html">ThreadCtx</a> = <a class="code" href="../../da/de3/structBloomberg_1_1quantum_1_1IThreadContext.html">IThreadContext&lt;RET&gt;</a>;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a879043028bc5aeb46aa484d34d464314">   49</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="../../d5/dd1/structBloomberg_1_1quantum_1_1ICoroContext.html">CoroCtx</a> = <a class="code" href="../../d5/dd1/structBloomberg_1_1quantum_1_1ICoroContext.html">ICoroContext&lt;RET&gt;</a>;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    </div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="comment">//              D&#39;TOR</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a27f69b3023acdc46fc3145db80ea1b68">~Context</a>();</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="comment">//           ITERMINATE</span></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a8bac8f4101d8469756bb27b1c0b7f9dc">terminate</a>() final;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    </div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="comment">//         ITASKACCESSOR</span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#ae5a828ab3f18b336f310191e04bae154">setTask</a>(<a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html">ITask</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> task) final;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html">ITask</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a71819413eb6ab86661343d31e5ba9acb">getTask</a>() const final;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a8db6bb1798fc7c74534648e2091ad5be">isBlocked</a>() const final;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#addfd8c1fdeb5ca8594a2af08dd74c7ca">isSleeping</a>(<span class="keywordtype">bool</span> updateTimer = false) final;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="comment">//         ICONTEXTBASE</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#aef705383af39db02acc63c0dd8e4a321">valid</a>() const final;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#ab23416d558addcca3ba223c3ff689672">validAt</a>(<span class="keywordtype">int</span> num) const final;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a5a71ccef08af22fdde662e7df560dccb">setException</a>(<a class="code" href="../../d8/dcc/namespacestd.html">std</a>::exception_ptr ex) final;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    </div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="comment">//        ITHREADCONTEXTBASE</span></div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#ac89818fc8478508cad80c6cdb833e2dd">waitAt</a>(<span class="keywordtype">int</span> num) const final;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::future_status <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a13a7039dd07811ced226e5adc29d6819">waitForAt</a>(<span class="keywordtype">int</span> num, <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::chrono::milliseconds timeMs) const final;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a084c691c4873a2dd206b05ecd3e5dd34">wait</a>() const final;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::future_status <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a3472f64cc9dd65b058f8fcbabc4e3d02">waitFor</a>(<a class="code" href="../../d8/dcc/namespacestd.html">std</a>::chrono::milliseconds timeMs) const final;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a945677eefa8942162876ddc8a96e2a3f">waitAll</a>() const final;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="comment">//         ITHREADCONTEXT</span></div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> V = RET&gt;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a0a7dd2b5f475bbecb11bfa87fcc251c5">NonBufferRetType</a>&lt;V&gt; <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a9f6d2ba69b3d5553fd009bb7cd6d507b">get</a>();</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> V = RET&gt;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    const <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a0a7dd2b5f475bbecb11bfa87fcc251c5">NonBufferRetType</a>&lt;V&gt;&amp; <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#afc148b852493915dfa3925f4d8ca80e4">getRef</a>() const;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> V, <a class="code" href="../../d9/d6d/classclass.html">class</a> = <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a7dfd30e4d4fe997b548ac41bad9d802d">NonBufferType</a>&lt;RET,V&gt;&gt;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#aaf24cac3dcdf0bf21b7301e606fa4d1a">set</a>(V&amp;&amp; value);</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> V, <a class="code" href="../../d9/d6d/classclass.html">class</a> = <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a6a7355c34dce8bf032f8e79333d511c7">BufferType</a>&lt;RET,V&gt;&gt;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a6cc68322709515d1586cf453276f2100">push</a>(V&amp;&amp; value);</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> V = RET&gt;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a3e3f89ff8206c0514976b423cb7199cd">BufferRetType</a>&lt;V&gt; <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a92e7d6dac6001c2f0fd9da6934e81440">pull</a>(<span class="keywordtype">bool</span>&amp; isBufferClosed);</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET&gt;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a0a7dd2b5f475bbecb11bfa87fcc251c5">NonBufferRetType</a>&lt;OTHER_RET&gt; <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#ac90b19af9520df4882b8d1f9a0f9ad0c">getAt</a>(<span class="keywordtype">int</span> num);</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET&gt;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    const <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a0a7dd2b5f475bbecb11bfa87fcc251c5">NonBufferRetType</a>&lt;OTHER_RET&gt;&amp; <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a3f03e8a60cefa9aed0d9de63fcc63452">getRefAt</a>(<span class="keywordtype">int</span> num) const;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    </div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <span class="comment">//        ICOROCONTEXTBASE</span></div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#ac89818fc8478508cad80c6cdb833e2dd">waitAt</a>(<span class="keywordtype">int</span> num, <a class="code" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html">ICoroSync</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> sync) const final;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::future_status <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a13a7039dd07811ced226e5adc29d6819">waitForAt</a>(<span class="keywordtype">int</span> num, <a class="code" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html">ICoroSync</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> sync, <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::chrono::milliseconds timeMs) const final;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a084c691c4873a2dd206b05ecd3e5dd34">wait</a>(<a class="code" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html">ICoroSync</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> sync) const final;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::future_status <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a3472f64cc9dd65b058f8fcbabc4e3d02">waitFor</a>(<a class="code" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html">ICoroSync</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> sync, <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::chrono::milliseconds timeMs) const final;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a945677eefa8942162876ddc8a96e2a3f">waitAll</a>(<a class="code" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html">ICoroSync</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> sync) const final;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    </div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="comment">//         ICOROCONTEXT</span></div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> V = RET&gt;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a0a7dd2b5f475bbecb11bfa87fcc251c5">NonBufferRetType</a>&lt;V&gt; <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a9f6d2ba69b3d5553fd009bb7cd6d507b">get</a>(<a class="code" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html">ICoroSync</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> sync);</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> V = RET&gt;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    const <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a0a7dd2b5f475bbecb11bfa87fcc251c5">NonBufferRetType</a>&lt;V&gt;&amp; <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#afc148b852493915dfa3925f4d8ca80e4">getRef</a>(<a class="code" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html">ICoroSync</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> sync) const;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> V, <a class="code" href="../../d9/d6d/classclass.html">class</a> = <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a7dfd30e4d4fe997b548ac41bad9d802d">NonBufferType</a>&lt;RET,V&gt;&gt;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#aaf24cac3dcdf0bf21b7301e606fa4d1a">set</a>(<a class="code" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html">ICoroSync</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> sync, V&amp;&amp; value);</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> V, <a class="code" href="../../d9/d6d/classclass.html">class</a> = <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a6a7355c34dce8bf032f8e79333d511c7">BufferType</a>&lt;RET,V&gt;&gt;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a6cc68322709515d1586cf453276f2100">push</a>(<a class="code" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html">ICoroSync</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> sync, V&amp;&amp; value);</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> V = RET&gt;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a3e3f89ff8206c0514976b423cb7199cd">BufferRetType</a>&lt;V&gt; <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a92e7d6dac6001c2f0fd9da6934e81440">pull</a>(<a class="code" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html">ICoroSync</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> sync, <span class="keywordtype">bool</span>&amp; isBufferClosed);</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET&gt;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a0a7dd2b5f475bbecb11bfa87fcc251c5">NonBufferRetType</a>&lt;OTHER_RET&gt; <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#ac90b19af9520df4882b8d1f9a0f9ad0c">getAt</a>(<span class="keywordtype">int</span> num, <a class="code" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html">ICoroSync</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> sync);</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET&gt;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    const <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a0a7dd2b5f475bbecb11bfa87fcc251c5">NonBufferRetType</a>&lt;OTHER_RET&gt;&amp; <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a3f03e8a60cefa9aed0d9de63fcc63452">getRefAt</a>(<span class="keywordtype">int</span> num, <a class="code" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html">ICoroSync</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> sync) const;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET&gt;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a0a7dd2b5f475bbecb11bfa87fcc251c5">NonBufferRetType</a>&lt;OTHER_RET&gt; <a class="code" href="../../d5/dd1/structBloomberg_1_1quantum_1_1ICoroContext.html#a141e79103170cb9cb0fb0197d8df61e5">getPrev</a>(<a class="code" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html">ICoroSync</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> sync);</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET&gt;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    const <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a0a7dd2b5f475bbecb11bfa87fcc251c5">NonBufferRetType</a>&lt;OTHER_RET&gt;&amp; <a class="code" href="../../d5/dd1/structBloomberg_1_1quantum_1_1ICoroContext.html#a7aeb2b66b620b208cde57129a9293ec3">getPrevRef</a>(<a class="code" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html">ICoroSync</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> sync);</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    </div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <span class="comment">//           ICOROSYNC</span></div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#aeae6afb073e6d92f06c17c6d8f2048ff">setYieldHandle</a>(<a class="code" href="../../d6/d86/structBloomberg_1_1quantum_1_1Traits.html">Traits</a>::Yield&amp; <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a83acb42a49d715661b7489479a2cbd53">yield</a>) final;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <a class="code" href="../../d6/d86/structBloomberg_1_1quantum_1_1Traits.html">Traits</a>::Yield&amp; <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a844be164636c0bd4a97c8a60aadb9316">getYieldHandle</a>() final;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a83acb42a49d715661b7489479a2cbd53">yield</a>() final;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::atomic_int&amp; <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a74f3e3b2e513eaf80caa486d23151a61">signal</a>() final;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#adc7018b34b69e8283395b1bfd0e70883">sleep</a>(const <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::chrono::milliseconds&amp; timeMs) final;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#adc7018b34b69e8283395b1bfd0e70883">sleep</a>(const <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::chrono::microseconds&amp; timeUs) final;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    </div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <span class="comment">//      MISC IMPLEMENTATIONS</span></div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> V = RET, <a class="code" href="../../d9/d6d/classclass.html">class</a> = <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a3e3f89ff8206c0514976b423cb7199cd">BufferRetType</a>&lt;V&gt;&gt;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a60c1b4501689af034dfcb9c284b8286e">closeBuffer</a>();</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a66b2fe051e1b72e6a045cb0a3e57b9d2">getNumCoroutineThreads</a>() const;</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a5855eee0ab54a2d606cdc96196816a74">getNumIoThreads</a>() const;</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    const <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::pair&lt;<span class="keywordtype">int</span>, <span class="keywordtype">int</span>&gt;&amp; <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a70e2d72600c412fdeca447b9b111991c">getCoroQueueIdRangeForAny</a>() const;</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    </div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="comment">//        TASK CONTINUATIONS</span></div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET, <a class="code" href="../../d9/d6d/classclass.html">class</a> FUNC, <a class="code" href="../../d9/d6d/classclass.html">class</a> ... ARGS&gt;</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    typename <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;OTHER_RET&gt;::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a></div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#ac928e4597e14090fa7c79dd108e307c8">post</a>(FUNC&amp;&amp; func, ARGS&amp;&amp;... args);</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    </div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET, <a class="code" href="../../d9/d6d/classclass.html">class</a> FUNC, <a class="code" href="../../d9/d6d/classclass.html">class</a> ... ARGS&gt;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    typename <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;OTHER_RET&gt;::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a></div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#ac928e4597e14090fa7c79dd108e307c8">post</a>(<span class="keywordtype">int</span> queueId, <span class="keywordtype">bool</span> isHighPriority, FUNC&amp;&amp; func, ARGS&amp;&amp;... args);</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    </div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET, <a class="code" href="../../d9/d6d/classclass.html">class</a> FUNC, <a class="code" href="../../d9/d6d/classclass.html">class</a> ... ARGS&gt;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    typename <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;OTHER_RET&gt;::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a></div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a2dc486e2e5a28985565be243738d395b">postFirst</a>(FUNC&amp;&amp; func, ARGS&amp;&amp;... args);</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    </div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET, <a class="code" href="../../d9/d6d/classclass.html">class</a> FUNC, <a class="code" href="../../d9/d6d/classclass.html">class</a> ... ARGS&gt;</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    typename <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;OTHER_RET&gt;::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a></div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a2dc486e2e5a28985565be243738d395b">postFirst</a>(<span class="keywordtype">int</span> queueId, <span class="keywordtype">bool</span> isHighPriority, FUNC&amp;&amp; func, ARGS&amp;&amp;... args);</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    </div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET, <a class="code" href="../../d9/d6d/classclass.html">class</a> FUNC, <a class="code" href="../../d9/d6d/classclass.html">class</a> ... ARGS&gt;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    typename <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;OTHER_RET&gt;::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a></div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a4a7b792045fd293b26b4a265a713df6c">then</a>(FUNC&amp;&amp; func, ARGS&amp;&amp;... args);</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    </div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET, <a class="code" href="../../d9/d6d/classclass.html">class</a> FUNC, <a class="code" href="../../d9/d6d/classclass.html">class</a> ... ARGS&gt;</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    typename <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;OTHER_RET&gt;::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a></div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#af16615063c053d9f5c60cbdfc2e4ca3e">onError</a>(FUNC&amp;&amp; func, ARGS&amp;&amp;... args);</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    </div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET, <a class="code" href="../../d9/d6d/classclass.html">class</a> FUNC, <a class="code" href="../../d9/d6d/classclass.html">class</a> ... ARGS&gt;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    typename <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;OTHER_RET&gt;::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a></div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a6ac11b61f3c2ec6f8b415239dfe8342c">finally</a>(FUNC&amp;&amp; func, ARGS&amp;&amp;... args);</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    </div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a671d7fb7fb234086b568a101dde84b0b">end</a>();</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    </div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    <span class="comment">//           BLOCKING IO</span></div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET, <a class="code" href="../../d9/d6d/classclass.html">class</a> FUNC, <a class="code" href="../../d9/d6d/classclass.html">class</a> ... ARGS&gt;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a294434a555befbec5230f5ff03944878">CoroFuturePtr</a>&lt;OTHER_RET&gt;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a18431eacd784c497f727852c508597b5">postAsyncIo</a>(FUNC&amp;&amp; func, ARGS&amp;&amp;... args);</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    </div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET, <a class="code" href="../../d9/d6d/classclass.html">class</a> FUNC, <a class="code" href="../../d9/d6d/classclass.html">class</a> ... ARGS&gt;</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a294434a555befbec5230f5ff03944878">CoroFuturePtr</a>&lt;OTHER_RET&gt;</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a18431eacd784c497f727852c508597b5">postAsyncIo</a>(<span class="keywordtype">int</span> queueId, <span class="keywordtype">bool</span> isHighPriority, FUNC&amp;&amp; func, ARGS&amp;&amp;... args);</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    </div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    <span class="comment">//           FOR EACH</span></div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET, <a class="code" href="../../d9/d6d/classclass.html">class</a> INPUT_IT, <a class="code" href="../../d9/d6d/classclass.html">class</a> = <a class="code" href="../../d6/d86/structBloomberg_1_1quantum_1_1Traits.html">Traits</a>::IsInputIterator&lt;INPUT_IT&gt;&gt;</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    typename <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;<a class="code" href="../../d8/dcc/namespacestd.html">std</a>::vector&lt;OTHER_RET&gt;&gt;::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a></div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a96495b0c3e9cfc2c1ad5ece71d72365c">forEach</a>(INPUT_IT first, INPUT_IT last, <a class="code" href="../../d0/d25/structBloomberg_1_1quantum_1_1Functions.html">Functions</a>::ForEachFunc&lt;OTHER_RET, INPUT_IT&gt; func);</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    </div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET, <a class="code" href="../../d9/d6d/classclass.html">class</a> INPUT_IT&gt;</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    typename <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;<a class="code" href="../../d8/dcc/namespacestd.html">std</a>::vector&lt;OTHER_RET&gt;&gt;::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a></div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a96495b0c3e9cfc2c1ad5ece71d72365c">forEach</a>(INPUT_IT first, <span class="keywordtype">size_t</span> num, <a class="code" href="../../d0/d25/structBloomberg_1_1quantum_1_1Functions.html">Functions</a>::ForEachFunc&lt;OTHER_RET, INPUT_IT&gt; func);</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    </div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET, <a class="code" href="../../d9/d6d/classclass.html">class</a> INPUT_IT, <a class="code" href="../../d9/d6d/classclass.html">class</a> = <a class="code" href="../../d6/d86/structBloomberg_1_1quantum_1_1Traits.html">Traits</a>::IsInputIterator&lt;INPUT_IT&gt;&gt;</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    typename <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;<a class="code" href="../../d8/dcc/namespacestd.html">std</a>::vector&lt;<a class="code" href="../../d8/dcc/namespacestd.html">std</a>::vector&lt;OTHER_RET&gt;&gt;&gt;::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a></div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a733bf9fc02a6fdc40034a7e9d10de66e">forEachBatch</a>(INPUT_IT first, INPUT_IT last, <a class="code" href="../../d0/d25/structBloomberg_1_1quantum_1_1Functions.html">Functions</a>::ForEachFunc&lt;OTHER_RET, INPUT_IT&gt; func);</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET, <a class="code" href="../../d9/d6d/classclass.html">class</a> INPUT_IT&gt;</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    typename <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;<a class="code" href="../../d8/dcc/namespacestd.html">std</a>::vector&lt;<a class="code" href="../../d8/dcc/namespacestd.html">std</a>::vector&lt;OTHER_RET&gt;&gt;&gt;::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a></div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a733bf9fc02a6fdc40034a7e9d10de66e">forEachBatch</a>(INPUT_IT first, <span class="keywordtype">size_t</span> num, <a class="code" href="../../d0/d25/structBloomberg_1_1quantum_1_1Functions.html">Functions</a>::ForEachFunc&lt;OTHER_RET, INPUT_IT&gt; func);</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    </div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    <span class="comment">//           MAP REDUCE</span></div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> KEY,</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;              <a class="code" href="../../d9/d6d/classclass.html">class</a> MAPPED_TYPE,</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;              <a class="code" href="../../d9/d6d/classclass.html">class</a> REDUCED_TYPE,</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;              <a class="code" href="../../d9/d6d/classclass.html">class</a> INPUT_IT,</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;              <a class="code" href="../../d9/d6d/classclass.html">class</a> = <a class="code" href="../../d6/d86/structBloomberg_1_1quantum_1_1Traits.html">Traits</a>::IsInputIterator&lt;INPUT_IT&gt;&gt;</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    typename <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;<a class="code" href="../../d8/dcc/namespacestd.html">std</a>::map&lt;KEY, REDUCED_TYPE&gt;&gt;::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a></div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a44d83337fc1c9d7496a29f0e347913c5">mapReduce</a>(INPUT_IT first,</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;              INPUT_IT last,</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;              <a class="code" href="../../d0/d25/structBloomberg_1_1quantum_1_1Functions.html">Functions</a>::MapFunc&lt;KEY, MAPPED_TYPE, INPUT_IT&gt; mapper,</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;              <a class="code" href="../../d0/d25/structBloomberg_1_1quantum_1_1Functions.html">Functions</a>::ReduceFunc&lt;KEY, MAPPED_TYPE, REDUCED_TYPE&gt; reducer);</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    </div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> KEY,</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;              <a class="code" href="../../d9/d6d/classclass.html">class</a> MAPPED_TYPE,</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;              <a class="code" href="../../d9/d6d/classclass.html">class</a> REDUCED_TYPE,</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;              <a class="code" href="../../d9/d6d/classclass.html">class</a> INPUT_IT&gt;</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    typename <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;<a class="code" href="../../d8/dcc/namespacestd.html">std</a>::map&lt;KEY, REDUCED_TYPE&gt;&gt;::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a></div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a44d83337fc1c9d7496a29f0e347913c5">mapReduce</a>(INPUT_IT first,</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;              <span class="keywordtype">size_t</span> num,</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;              <a class="code" href="../../d0/d25/structBloomberg_1_1quantum_1_1Functions.html">Functions</a>::MapFunc&lt;KEY, MAPPED_TYPE, INPUT_IT&gt; mapper,</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;              <a class="code" href="../../d0/d25/structBloomberg_1_1quantum_1_1Functions.html">Functions</a>::ReduceFunc&lt;KEY, MAPPED_TYPE, REDUCED_TYPE&gt; reducer);</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    </div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> KEY,</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;              <a class="code" href="../../d9/d6d/classclass.html">class</a> MAPPED_TYPE,</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;              <a class="code" href="../../d9/d6d/classclass.html">class</a> REDUCED_TYPE,</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;              <a class="code" href="../../d9/d6d/classclass.html">class</a> INPUT_IT,</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;              <a class="code" href="../../d9/d6d/classclass.html">class</a> = <a class="code" href="../../d6/d86/structBloomberg_1_1quantum_1_1Traits.html">Traits</a>::IsInputIterator&lt;INPUT_IT&gt;&gt;</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    typename <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;<a class="code" href="../../d8/dcc/namespacestd.html">std</a>::map&lt;KEY, REDUCED_TYPE&gt;&gt;::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a></div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a86cdeea67c11d6e5a3740ca315b0979b">mapReduceBatch</a>(INPUT_IT first,</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;                   INPUT_IT last,</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;                   <a class="code" href="../../d0/d25/structBloomberg_1_1quantum_1_1Functions.html">Functions</a>::MapFunc&lt;KEY, MAPPED_TYPE, INPUT_IT&gt; mapper,</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;                   <a class="code" href="../../d0/d25/structBloomberg_1_1quantum_1_1Functions.html">Functions</a>::ReduceFunc&lt;KEY, MAPPED_TYPE, REDUCED_TYPE&gt; reducer);</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    </div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> KEY,</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;              <a class="code" href="../../d9/d6d/classclass.html">class</a> MAPPED_TYPE,</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;              <a class="code" href="../../d9/d6d/classclass.html">class</a> REDUCED_TYPE,</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;              <a class="code" href="../../d9/d6d/classclass.html">class</a> INPUT_IT&gt;</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    typename <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;<a class="code" href="../../d8/dcc/namespacestd.html">std</a>::map&lt;KEY, REDUCED_TYPE&gt;&gt;::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a></div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a86cdeea67c11d6e5a3740ca315b0979b">mapReduceBatch</a>(INPUT_IT first,</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;                   <span class="keywordtype">size_t</span> num,</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;                   <a class="code" href="../../d0/d25/structBloomberg_1_1quantum_1_1Functions.html">Functions</a>::MapFunc&lt;KEY, MAPPED_TYPE, INPUT_IT&gt; mapper,</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;                   <a class="code" href="../../d0/d25/structBloomberg_1_1quantum_1_1Functions.html">Functions</a>::ReduceFunc&lt;KEY, MAPPED_TYPE, REDUCED_TYPE&gt; reducer);</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    </div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    <span class="comment">//           NEW / DELETE</span></div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;    <span class="comment">//===================================</span></div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;    static <span class="keywordtype">void</span>* operator new(<span class="keywordtype">size_t</span> size);</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    static <span class="keywordtype">void</span> operator delete(<span class="keywordtype">void</span>* p);</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;    static <span class="keywordtype">void</span> <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#adfe001a8f4c433d80ee93e1bdcd1a8ac">deleter</a>(<a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;RET&gt;* p);</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;    </div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;private:</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    explicit <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>(<a class="code" href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html">DispatcherCore</a>&amp; dispatcher);</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;    </div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET&gt;</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>(<a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;OTHER_RET&gt;&amp; other);</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    </div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>(<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html">IContextBase</a>&amp; other);</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    </div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET, <a class="code" href="../../d9/d6d/classclass.html">class</a> FUNC, <a class="code" href="../../d9/d6d/classclass.html">class</a> ... ARGS&gt;</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    typename <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;OTHER_RET&gt;::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a></div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;    thenImpl(<a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html">ITask</a>::Type type, FUNC&amp;&amp; func, ARGS&amp;&amp;... args);</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET, <a class="code" href="../../d9/d6d/classclass.html">class</a> FUNC, <a class="code" href="../../d9/d6d/classclass.html">class</a> ... ARGS&gt;</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;    typename <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;OTHER_RET&gt;::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a></div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;    postImpl(<span class="keywordtype">int</span> queueId, <span class="keywordtype">bool</span> isHighPriority, <a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html">ITask</a>::Type type, FUNC&amp;&amp; func, ARGS&amp;&amp;... args);</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    </div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> OTHER_RET, <a class="code" href="../../d9/d6d/classclass.html">class</a> FUNC, <a class="code" href="../../d9/d6d/classclass.html">class</a> ... ARGS&gt;</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a294434a555befbec5230f5ff03944878">CoroFuturePtr</a>&lt;OTHER_RET&gt;</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;    postAsyncIoImpl(<span class="keywordtype">int</span> queueId, <span class="keywordtype">bool</span> isHighPriority, FUNC&amp;&amp; func, ARGS&amp;&amp;... args);</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    </div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;    <span class="keywordtype">int</span> index(<span class="keywordtype">int</span> num) const;</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    </div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    <span class="keywordtype">void</span> validateTaskType(<a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html">ITask</a>::Type type) const; <span class="comment">//throws</span></div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;    </div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    <span class="keywordtype">void</span> validateContext(<a class="code" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html">ICoroSync</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a> sync) const; <span class="comment">//throws</span></div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;    </div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    <span class="comment">//Members</span></div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    <a class="code" href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html">ITask</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a>                          _task;</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;    <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::vector&lt;<a class="code" href="../../df/de4/structBloomberg_1_1quantum_1_1IPromiseBase.html">IPromiseBase</a>::<a class="code" href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Ptr</a>&gt;      _promises;</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;    <a class="code" href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html">DispatcherCore</a>*                     _dispatcher;</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;    <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::atomic_flag                    _terminated;</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::atomic_int                     _signal;</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;    <a class="code" href="../../d6/d86/structBloomberg_1_1quantum_1_1Traits.html">Traits</a>::Yield*                      _yield;</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;    <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::chrono::microseconds           _sleepDuration;</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;    <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::chrono::high_resolution_clock::time_point  _sleepTimestamp;</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;};</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;template &lt;<a class="code" href="../../d9/d6d/classclass.html">class</a> RET&gt;</div><div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a97424bb463a112d6dd7606741b20e484">  307</a></span>&#160;using <a class="code" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a97424bb463a112d6dd7606741b20e484">ContextPtr</a> = typename <a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Context</a>&lt;RET&gt;::<a class="code" href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a93fbe0e7fa77b4b98f35ee2935dfaa83">Ptr</a>;</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;}}</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;<span class="preprocessor">#include &lt;quantum/interface/quantum_icontext.h&gt;</span></div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;<span class="preprocessor">#include &lt;quantum/impl/quantum_context_impl.h&gt;</span></div><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;<span class="preprocessor">#endif //BLOOMBERG_QUANTUM_CONTEXT_H</span></div><div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a92e7d6dac6001c2f0fd9da6934e81440"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a92e7d6dac6001c2f0fd9da6934e81440">Bloomberg::quantum::Context::pull</a></div><div class="ttdeci">BufferRetType&lt; V &gt; pull(bool &amp;isBufferClosed)</div><div class="ttdoc">Pull a single value from the future buffer.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:868</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a86cdeea67c11d6e5a3740ca315b0979b"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a86cdeea67c11d6e5a3740ca315b0979b">Bloomberg::quantum::Context::mapReduceBatch</a></div><div class="ttdeci">Context&lt; std::map&lt; KEY, REDUCED_TYPE &gt; &gt;::Ptr mapReduceBatch(INPUT_IT first, INPUT_IT last, Functions::MapFunc&lt; KEY, MAPPED_TYPE, INPUT_IT &gt; mapper, Functions::ReduceFunc&lt; KEY, MAPPED_TYPE, REDUCED_TYPE &gt; reducer)</div><div class="ttdoc">This version of mapReduce() runs both the mapper and the reducer functions in batches for improved pe...</div></div>
<div class="ttc" id="namespaceBloomberg_html"><div class="ttname"><a href="../../d6/db9/namespaceBloomberg.html">Bloomberg</a></div><div class="ttdef"><b>Definition:</b> quantum_buffer_impl.h:22</div></div>
<div class="ttc" id="namespaceBloomberg_1_1quantum_html_a6a7355c34dce8bf032f8e79333d511c7"><div class="ttname"><a href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a6a7355c34dce8bf032f8e79333d511c7">Bloomberg::quantum::BufferType</a></div><div class="ttdeci">std::enable_if_t&lt; Traits::IsBuffer&lt; T &gt;::value &amp;&amp;!std::is_same&lt; std::decay_t&lt; V &gt;, T &gt;::value &amp;&amp;std::is_convertible&lt; std::decay_t&lt; V &gt;, typename Traits::IsBuffer&lt; T &gt;::Type &gt;::value &gt; BufferType</div><div class="ttdef"><b>Definition:</b> quantum_traits.h:89</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a70e2d72600c412fdeca447b9b111991c"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a70e2d72600c412fdeca447b9b111991c">Bloomberg::quantum::Context::getCoroQueueIdRangeForAny</a></div><div class="ttdeci">const std::pair&lt; int, int &gt; &amp; getCoroQueueIdRangeForAny() const</div><div class="ttdoc">Gets the range [minQueueId, maxQueueId] of coroutine queueIds covered by IQueue::QueueId::Any by the ...</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:1027</div></div>
<div class="ttc" id="namespaceBloomberg_1_1quantum_html_a294434a555befbec5230f5ff03944878"><div class="ttname"><a href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a294434a555befbec5230f5ff03944878">Bloomberg::quantum::CoroFuturePtr</a></div><div class="ttdeci">typename ICoroFuture&lt; T &gt;::Ptr CoroFuturePtr</div><div class="ttdef"><b>Definition:</b> quantum_icoro_future.h:72</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_aef705383af39db02acc63c0dd8e4a321"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#aef705383af39db02acc63c0dd8e4a321">Bloomberg::quantum::Context::valid</a></div><div class="ttdeci">bool valid() const final</div><div class="ttdoc">Determines if the future object associated with this context has a valid shared state with the corres...</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:474</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IContextBase_html_ac92e5d294479f777fd01f5621e4f8db9"><div class="ttname"><a href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html#ac92e5d294479f777fd01f5621e4f8db9">Bloomberg::quantum::IContextBase::Ptr</a></div><div class="ttdeci">std::shared_ptr&lt; IContextBase &gt; Ptr</div><div class="ttdef"><b>Definition:</b> quantum_icontext_base.h:35</div></div>
<div class="ttc" id="namespaceBloomberg_1_1quantum_html_a7dfd30e4d4fe997b548ac41bad9d802d"><div class="ttname"><a href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a7dfd30e4d4fe997b548ac41bad9d802d">Bloomberg::quantum::NonBufferType</a></div><div class="ttdeci">std::enable_if_t&lt;!Traits::IsBuffer&lt; T &gt;::value &amp;&amp;std::is_convertible&lt; std::decay_t&lt; V &gt;, T &gt;::value &gt; NonBufferType</div><div class="ttdef"><b>Definition:</b> quantum_traits.h:91</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a18431eacd784c497f727852c508597b5"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a18431eacd784c497f727852c508597b5">Bloomberg::quantum::Context::postAsyncIo</a></div><div class="ttdeci">CoroFuturePtr&lt; OTHER_RET &gt; postAsyncIo(FUNC &amp;&amp;func, ARGS &amp;&amp;... args)</div><div class="ttdoc">Posts an IO method to run asynchronously on the IO thread pool.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:697</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a3f03e8a60cefa9aed0d9de63fcc63452"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a3f03e8a60cefa9aed0d9de63fcc63452">Bloomberg::quantum::Context::getRefAt</a></div><div class="ttdeci">const NonBufferRetType&lt; OTHER_RET &gt; &amp; getRefAt(int num) const</div><div class="ttdoc">Get a reference to the future value from the 'num-th' continuation context.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:896</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ICoroContext_html"><div class="ttname"><a href="../../d5/dd1/structBloomberg_1_1quantum_1_1ICoroContext.html">Bloomberg::quantum::ICoroContext</a></div><div class="ttdoc">Exposes methods to manipulate the coroutine context.</div><div class="ttdef"><b>Definition:</b> quantum_icoro_context.h:38</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1DispatcherCore_html"><div class="ttname"><a href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html">Bloomberg::quantum::DispatcherCore</a></div><div class="ttdoc">Class implementing the dispatching logic unto worker threads. Used for both coroutines and IO tasks.</div><div class="ttdef"><b>Definition:</b> quantum_dispatcher_core.h:45</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1Util_html"><div class="ttname"><a href="../../d1/db1/structBloomberg_1_1quantum_1_1Util.html">Bloomberg::quantum::Util</a></div><div class="ttdoc">Utility to bind a user callable function unto a coroutine or an IO task.</div><div class="ttdef"><b>Definition:</b> quantum_util.h:45</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a27f69b3023acdc46fc3145db80ea1b68"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a27f69b3023acdc46fc3145db80ea1b68">Bloomberg::quantum::Context::~Context</a></div><div class="ttdeci">~Context()</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:450</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a96495b0c3e9cfc2c1ad5ece71d72365c"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a96495b0c3e9cfc2c1ad5ece71d72365c">Bloomberg::quantum::Context::forEach</a></div><div class="ttdeci">Context&lt; std::vector&lt; OTHER_RET &gt; &gt;::Ptr forEach(INPUT_IT first, INPUT_IT last, Functions::ForEachFunc&lt; OTHER_RET, INPUT_IT &gt; func)</div><div class="ttdoc">Applies the given unary function to all the elements in the range [first,last). This function runs in...</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ICoroSync_html"><div class="ttname"><a href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html">Bloomberg::quantum::ICoroSync</a></div><div class="ttdoc">Provides an interface to facilitate 'implicit' coroutine yielding within other primitives such as mut...</div><div class="ttdef"><b>Definition:</b> quantum_icoro_sync.h:34</div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="../../d8/dcc/namespacestd.html">std</a></div><div class="ttdef"><b>Definition:</b> quantum_stl_impl.h:23</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_adc7018b34b69e8283395b1bfd0e70883"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#adc7018b34b69e8283395b1bfd0e70883">Bloomberg::quantum::Context::sleep</a></div><div class="ttdeci">void sleep(const std::chrono::milliseconds &amp;timeMs) final</div><div class="ttdoc">Sleeps the coroutine associated with this context for at least 'timeMs' milliseconds or 'timeUs' micr...</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:618</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a71819413eb6ab86661343d31e5ba9acb"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a71819413eb6ab86661343d31e5ba9acb">Bloomberg::quantum::Context::getTask</a></div><div class="ttdeci">ITask::Ptr getTask() const final</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:587</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a2dc486e2e5a28985565be243738d395b"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a2dc486e2e5a28985565be243738d395b">Bloomberg::quantum::Context::postFirst</a></div><div class="ttdeci">Context&lt; OTHER_RET &gt;::Ptr postFirst(FUNC &amp;&amp;func, ARGS &amp;&amp;... args)</div><div class="ttdoc">Posts a coroutine to run asynchronously.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_aaf24cac3dcdf0bf21b7301e606fa4d1a"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#aaf24cac3dcdf0bf21b7301e606fa4d1a">Bloomberg::quantum::Context::set</a></div><div class="ttdeci">int set(V &amp;&amp;value)</div><div class="ttdoc">Set the promised value associated with this context.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:847</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Task_html"><div class="ttname"><a href="../../d0/d90/classBloomberg_1_1quantum_1_1Task.html">Bloomberg::quantum::Task</a></div><div class="ttdoc">Runnable object representing a coroutine.</div><div class="ttdef"><b>Definition:</b> quantum_task.h:40</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a93fbe0e7fa77b4b98f35ee2935dfaa83"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a93fbe0e7fa77b4b98f35ee2935dfaa83">Bloomberg::quantum::Context::Ptr</a></div><div class="ttdeci">std::shared_ptr&lt; Context&lt; RET &gt; &gt; Ptr</div><div class="ttdef"><b>Definition:</b> quantum_context.h:47</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_ac89818fc8478508cad80c6cdb833e2dd"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#ac89818fc8478508cad80c6cdb833e2dd">Bloomberg::quantum::Context::waitAt</a></div><div class="ttdeci">void waitAt(int num) const final</div><div class="ttdoc">Waits for the future in the 'num-th' continuation context to be ready.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:916</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Dispatcher_html"><div class="ttname"><a href="../../d0/da5/classBloomberg_1_1quantum_1_1Dispatcher.html">Bloomberg::quantum::Dispatcher</a></div><div class="ttdoc">Parallel execution engine used to run coroutines or IO tasks asynchronously. This class is the main e...</div><div class="ttdef"><b>Definition:</b> quantum_dispatcher.h:34</div></div>
<div class="ttc" id="namespaceBloomberg_1_1quantum_html_a0a7dd2b5f475bbecb11bfa87fcc251c5"><div class="ttname"><a href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a0a7dd2b5f475bbecb11bfa87fcc251c5">Bloomberg::quantum::NonBufferRetType</a></div><div class="ttdeci">std::enable_if_t&lt;!Traits::IsBuffer&lt; T &gt;::value, typename Traits::IsBuffer&lt; T &gt;::Type &gt; NonBufferRetType</div><div class="ttdef"><b>Definition:</b> quantum_traits.h:95</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a6ac11b61f3c2ec6f8b415239dfe8342c"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a6ac11b61f3c2ec6f8b415239dfe8342c">Bloomberg::quantum::Context::finally</a></div><div class="ttdeci">Context&lt; OTHER_RET &gt;::Ptr finally(FUNC &amp;&amp;func, ARGS &amp;&amp;... args)</div><div class="ttdoc">Posts a coroutine to run asynchronously. This coroutine is always guaranteed to run.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a8db6bb1798fc7c74534648e2091ad5be"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a8db6bb1798fc7c74534648e2091ad5be">Bloomberg::quantum::Context::isBlocked</a></div><div class="ttdeci">bool isBlocked() const final</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:486</div></div>
<div class="ttc" id="namespaceBloomberg_1_1quantum_html_a97424bb463a112d6dd7606741b20e484"><div class="ttname"><a href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a97424bb463a112d6dd7606741b20e484">Bloomberg::quantum::ContextPtr</a></div><div class="ttdeci">typename Context&lt; RET &gt;::Ptr ContextPtr</div><div class="ttdef"><b>Definition:</b> quantum_context.h:307</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html">Bloomberg::quantum::Context</a></div><div class="ttdoc">Concrete class representing a coroutine or a thread context.</div><div class="ttdef"><b>Definition:</b> quantum_icoro_context.h:29</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a945677eefa8942162876ddc8a96e2a3f"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a945677eefa8942162876ddc8a96e2a3f">Bloomberg::quantum::Context::waitAll</a></div><div class="ttdeci">void waitAll() const final</div><div class="ttdoc">Wait for all the futures in the continuation chain to be ready.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:940</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a5855eee0ab54a2d606cdc96196816a74"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a5855eee0ab54a2d606cdc96196816a74">Bloomberg::quantum::Context::getNumIoThreads</a></div><div class="ttdeci">int getNumIoThreads() const</div><div class="ttdoc">Returns the number of underlying IO threads as specified in the dispatcher constructor.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:1021</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IContextBase_html"><div class="ttname"><a href="../../d8/db0/structBloomberg_1_1quantum_1_1IContextBase.html">Bloomberg::quantum::IContextBase</a></div><div class="ttdoc">This interface exposes shared functionality between IThreadContext and ICoroContext.</div><div class="ttdef"><b>Definition:</b> quantum_icontext_base.h:33</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a8bac8f4101d8469756bb27b1c0b7f9dc"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a8bac8f4101d8469756bb27b1c0b7f9dc">Bloomberg::quantum::Context::terminate</a></div><div class="ttdeci">void terminate() final</div><div class="ttdoc">Terminates the object.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:456</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_aeae6afb073e6d92f06c17c6d8f2048ff"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#aeae6afb073e6d92f06c17c6d8f2048ff">Bloomberg::quantum::Context::setYieldHandle</a></div><div class="ttdeci">void setYieldHandle(Traits::Yield &amp;yield) final</div><div class="ttdoc">Sets the underlying boost::coroutine object so that it can be yielded on.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:593</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a44d83337fc1c9d7496a29f0e347913c5"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a44d83337fc1c9d7496a29f0e347913c5">Bloomberg::quantum::Context::mapReduce</a></div><div class="ttdeci">Context&lt; std::map&lt; KEY, REDUCED_TYPE &gt; &gt;::Ptr mapReduce(INPUT_IT first, INPUT_IT last, Functions::MapFunc&lt; KEY, MAPPED_TYPE, INPUT_IT &gt; mapper, Functions::ReduceFunc&lt; KEY, MAPPED_TYPE, REDUCED_TYPE &gt; reducer)</div><div class="ttdoc">Implementation of map-reduce functionality.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a83acb42a49d715661b7489479a2cbd53"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a83acb42a49d715661b7489479a2cbd53">Bloomberg::quantum::Context::yield</a></div><div class="ttdeci">void yield() final</div><div class="ttdoc">Explicitly yields this coroutine context.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:606</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a733bf9fc02a6fdc40034a7e9d10de66e"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a733bf9fc02a6fdc40034a7e9d10de66e">Bloomberg::quantum::Context::forEachBatch</a></div><div class="ttdeci">Context&lt; std::vector&lt; std::vector&lt; OTHER_RET &gt; &gt; &gt;::Ptr forEachBatch(INPUT_IT first, INPUT_IT last, Functions::ForEachFunc&lt; OTHER_RET, INPUT_IT &gt; func)</div><div class="ttdoc">Applies the given unary function to all the elements in the range [first,last). This function runs se...</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_af16615063c053d9f5c60cbdfc2e4ca3e"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#af16615063c053d9f5c60cbdfc2e4ca3e">Bloomberg::quantum::Context::onError</a></div><div class="ttdeci">Context&lt; OTHER_RET &gt;::Ptr onError(FUNC &amp;&amp;func, ARGS &amp;&amp;... args)</div><div class="ttdoc">Posts a coroutine to run asynchronously. This is the error handler for a continuation chain and acts ...</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a671d7fb7fb234086b568a101dde84b0b"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a671d7fb7fb234086b568a101dde84b0b">Bloomberg::quantum::Context::end</a></div><div class="ttdeci">Ptr end()</div><div class="ttdoc">This is the last method in a continuation chain.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:685</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a66b2fe051e1b72e6a045cb0a3e57b9d2"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a66b2fe051e1b72e6a045cb0a3e57b9d2">Bloomberg::quantum::Context::getNumCoroutineThreads</a></div><div class="ttdeci">int getNumCoroutineThreads() const</div><div class="ttdoc">Returns the number of underlying coroutine threads as specified in the dispatcher constructor....</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:1015</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ICoroContext_html_a7aeb2b66b620b208cde57129a9293ec3"><div class="ttname"><a href="../../d5/dd1/structBloomberg_1_1quantum_1_1ICoroContext.html#a7aeb2b66b620b208cde57129a9293ec3">Bloomberg::quantum::ICoroContext::getPrevRef</a></div><div class="ttdeci">const NonBufferRetType&lt; OTHER_RET &gt; &amp; getPrevRef()</div><div class="ttdoc">Get a reference to future value associated with the previous coroutine context in the continuation ch...</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:161</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a084c691c4873a2dd206b05ecd3e5dd34"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a084c691c4873a2dd206b05ecd3e5dd34">Bloomberg::quantum::Context::wait</a></div><div class="ttdeci">void wait() const final</div><div class="ttdoc">Waits for the future associated with this context to be ready.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:928</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a5a71ccef08af22fdde662e7df560dccb"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a5a71ccef08af22fdde662e7df560dccb">Bloomberg::quantum::Context::setException</a></div><div class="ttdeci">int setException(std::exception_ptr ex) final</div><div class="ttdoc">Set an exception in the promise associated with the current IThreadContext or ICoroContext.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:480</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_adfe001a8f4c433d80ee93e1bdcd1a8ac"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#adfe001a8f4c433d80ee93e1bdcd1a8ac">Bloomberg::quantum::Context::deleter</a></div><div class="ttdeci">static void deleter(Context&lt; RET &gt; *p)</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:1148</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_ab23416d558addcca3ba223c3ff689672"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#ab23416d558addcca3ba223c3ff689672">Bloomberg::quantum::Context::validAt</a></div><div class="ttdeci">bool validAt(int num) const final</div><div class="ttdoc">Determines if the future object associated with the 'num'-th continuation context is still valid.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:468</div></div>
<div class="ttc" id="namespaceBloomberg_1_1quantum_html_a3e3f89ff8206c0514976b423cb7199cd"><div class="ttname"><a href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a3e3f89ff8206c0514976b423cb7199cd">Bloomberg::quantum::BufferRetType</a></div><div class="ttdeci">std::enable_if_t&lt; Traits::IsBuffer&lt; T &gt;::value, typename Traits::IsBuffer&lt; T &gt;::Type &gt; BufferRetType</div><div class="ttdef"><b>Definition:</b> quantum_traits.h:93</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ICoroContext_html_a141e79103170cb9cb0fb0197d8df61e5"><div class="ttname"><a href="../../d5/dd1/structBloomberg_1_1quantum_1_1ICoroContext.html#a141e79103170cb9cb0fb0197d8df61e5">Bloomberg::quantum::ICoroContext::getPrev</a></div><div class="ttdeci">NonBufferRetType&lt; OTHER_RET &gt; getPrev()</div><div class="ttdoc">Get the future value associated with the previous coroutine context in the continuation chain.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:153</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a60c1b4501689af034dfcb9c284b8286e"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a60c1b4501689af034dfcb9c284b8286e">Bloomberg::quantum::Context::closeBuffer</a></div><div class="ttdeci">int closeBuffer()</div><div class="ttdoc">Close a promise buffer.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:882</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_ac928e4597e14090fa7c79dd108e307c8"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#ac928e4597e14090fa7c79dd108e307c8">Bloomberg::quantum::Context::post</a></div><div class="ttdeci">Context&lt; OTHER_RET &gt;::Ptr post(FUNC &amp;&amp;func, ARGS &amp;&amp;... args)</div><div class="ttdoc">Post a coroutine to run asynchronously.</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IPromiseBase_html"><div class="ttname"><a href="../../df/de4/structBloomberg_1_1quantum_1_1IPromiseBase.html">Bloomberg::quantum::IPromiseBase</a></div><div class="ttdoc">Exposes methods to manipulate and access a promise.</div><div class="ttdef"><b>Definition:</b> quantum_ipromise_base.h:32</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a3472f64cc9dd65b058f8fcbabc4e3d02"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a3472f64cc9dd65b058f8fcbabc4e3d02">Bloomberg::quantum::Context::waitFor</a></div><div class="ttdeci">std::future_status waitFor(std::chrono::milliseconds timeMs) const final</div><div class="ttdoc">Waits for the future associated with this context to be ready for a maximum of 'timeMs' milliseconds.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:934</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IThreadContext_html"><div class="ttname"><a href="../../da/de3/structBloomberg_1_1quantum_1_1IThreadContext.html">Bloomberg::quantum::IThreadContext</a></div><div class="ttdoc">Exposes methods to manipulate the thread context.</div><div class="ttdef"><b>Definition:</b> quantum_ithread_context.h:37</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_addfd8c1fdeb5ca8594a2af08dd74c7ca"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#addfd8c1fdeb5ca8594a2af08dd74c7ca">Bloomberg::quantum::Context::isSleeping</a></div><div class="ttdeci">bool isSleeping(bool updateTimer=false) final</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:492</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1ITask_html"><div class="ttname"><a href="../../df/daf/structBloomberg_1_1quantum_1_1ITask.html">Bloomberg::quantum::ITask</a></div><div class="ttdoc">Interface to a task. For internal use only.</div><div class="ttdef"><b>Definition:</b> quantum_itask.h:32</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a74f3e3b2e513eaf80caa486d23151a61"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a74f3e3b2e513eaf80caa486d23151a61">Bloomberg::quantum::Context::signal</a></div><div class="ttdeci">std::atomic_int &amp; signal() final</div><div class="ttdoc">Accessor to the underlying synchronization variable.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:612</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a9f6d2ba69b3d5553fd009bb7cd6d507b"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a9f6d2ba69b3d5553fd009bb7cd6d507b">Bloomberg::quantum::Context::get</a></div><div class="ttdeci">NonBufferRetType&lt; V &gt; get()</div><div class="ttdoc">Get the future value associated with this context.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:903</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1Functions_html"><div class="ttname"><a href="../../d0/d25/structBloomberg_1_1quantum_1_1Functions.html">Bloomberg::quantum::Functions</a></div><div class="ttdoc">Contains typedefs for various functions.</div><div class="ttdef"><b>Definition:</b> quantum_functions.h:31</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_ac90b19af9520df4882b8d1f9a0f9ad0c"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#ac90b19af9520df4882b8d1f9a0f9ad0c">Bloomberg::quantum::Context::getAt</a></div><div class="ttdeci">NonBufferRetType&lt; OTHER_RET &gt; getAt(int num)</div><div class="ttdoc">Get the future value from the 'num-th' continuation context.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:889</div></div>
<div class="ttc" id="classclass_html"><div class="ttname"><a href="../../d9/d6d/classclass.html">class</a></div><div class="ttdoc">Configuration parameters for the Quantum library.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a844be164636c0bd4a97c8a60aadb9316"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a844be164636c0bd4a97c8a60aadb9316">Bloomberg::quantum::Context::getYieldHandle</a></div><div class="ttdeci">Traits::Yield &amp; getYieldHandle() final</div><div class="ttdoc">Retrieve the underlying boost::coroutine object.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:599</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a13a7039dd07811ced226e5adc29d6819"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a13a7039dd07811ced226e5adc29d6819">Bloomberg::quantum::Context::waitForAt</a></div><div class="ttdeci">std::future_status waitForAt(int num, std::chrono::milliseconds timeMs) const final</div><div class="ttdoc">Waits for the future in the 'num-th' continuation context to be ready for a maximum of 'timeMs' milli...</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:922</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1Traits_html"><div class="ttname"><a href="../../d6/d86/structBloomberg_1_1quantum_1_1Traits.html">Bloomberg::quantum::Traits</a></div><div class="ttdoc">Contains definitions for various traits used by this library. For internal use only.</div><div class="ttdef"><b>Definition:</b> quantum_traits.h:55</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a6cc68322709515d1586cf453276f2100"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a6cc68322709515d1586cf453276f2100">Bloomberg::quantum::Context::push</a></div><div class="ttdeci">void push(V &amp;&amp;value)</div><div class="ttdoc">Push a single value into the promise buffer.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:854</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_a4a7b792045fd293b26b4a265a713df6c"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#a4a7b792045fd293b26b4a265a713df6c">Bloomberg::quantum::Context::then</a></div><div class="ttdeci">Context&lt; OTHER_RET &gt;::Ptr then(FUNC &amp;&amp;func, ARGS &amp;&amp;... args)</div><div class="ttdoc">Posts a coroutine to run asynchronously.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_ae5a828ab3f18b336f310191e04bae154"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#ae5a828ab3f18b336f310191e04bae154">Bloomberg::quantum::Context::setTask</a></div><div class="ttdeci">void setTask(ITask::Ptr task) final</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:581</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Context_html_afc148b852493915dfa3925f4d8ca80e4"><div class="ttname"><a href="../../d8/df7/classBloomberg_1_1quantum_1_1Context.html#afc148b852493915dfa3925f4d8ca80e4">Bloomberg::quantum::Context::getRef</a></div><div class="ttdeci">const NonBufferRetType&lt; V &gt; &amp; getRef() const</div><div class="ttdoc">Get a reference the future value associated with this context.</div><div class="ttdef"><b>Definition:</b> quantum_context_impl.h:910</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>quantum_context.h</b></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
